//
//  XMCollectionController.h
//  XunMi
//
//  Created by MacBook on 2024/2/18.
//  Copyright © 2024 TieZhu. All rights reserved.
//

#import "XMViewController.h"
#import "XMCollectionFlowLayout.h"

NS_ASSUME_NONNULL_BEGIN

@interface XMCollectionController : XMViewController <
UICollectionViewDelegate,
UICollectionViewDataSource,
UICollectionViewDelegateFlowLayout,
XMCollectionFlowLayoutDataSource>

@property (nonatomic, strong) UICollectionView *collectionView;
@property (nonatomic, strong) XMCollectionFlowLayout *layout;

- (void)registerCollectionNibWithNibName:(NSString *)nibName;
- (void)registerCollectionClassWithClassName:(NSString *)className;

- (void)reloadItemsAtIndexPaths:(NSArray<NSIndexPath *> *)indexPaths;
- (void)reloadSections:(NSIndexSet *)sections;

@end

NS_ASSUME_NONNULL_END
